package com.strongdigit.aop.aspectj.biz;

import org.springframework.stereotype.Service;

import javax.sound.midi.Soundbank;

@Service
public class MoocBiz {

    public void say(){
        System.out.println("我是MoocBiz中的say方法");
    }

    public String say(String arg){
        System.out.println("我是MoocBiz中的say方法");
        return "say的返回值";
    }

    @MoocMethod("biz sayAnnotation参数")
    public String sayAnnotation(String arg){
        System.out.println("sayAnnotation方法执行了");
        return "sayAnnotation返回值";
    }


    public String afterReturning(){
        System.out.println("我是MoocBiz中的afterReturning方法，我返回good");
        return "good";
    }

    public void afterThrowing() throws Exception{
        System.out.println("我是MoocBiz中的afterThrowing方法，我会爆出异常");
        //throw  new Exception("我是异常的内容");
    }

    public void after(){
        System.out.println("我是MoocBiz中的after方法");
    }

    public Object around(Integer a,Integer b,Integer c){
        return "我是返回值"+a.toString()+b.toString()+c.toString();
    }
}
